<template>
  <div>
    <el-row>
      <el-col :span="22" :offset="1">

        <!--卡片shart-->
        <el-card class="box-card" style="padding: 0 15px;">

          <!--标签页-->
          <el-tabs type="card" v-model="activeName" style="line-height: 40px;">
            <el-tab-pane label="处方" name="first" :key="'first'">
              <child1></child1>
            </el-tab-pane>

            <el-tab-pane label="病例" name="second" :key="'second'">
              <child2></child2>
            </el-tab-pane>

          </el-tabs>

        </el-card>
        <!--卡片end-->

      </el-col>
    </el-row>
  </div>
</template>

<script>
  import axios from 'axios'
  import child1 from './recipe';//处方
  import child2 from './record';//病例
  export default {
    components:{
      child1:child1,
      child2:child2
    },
    data() {
      return {
        //默认第一个选项卡
        activeName: "first",
      }
    },
    methods: {
    },
    mounted(){
    }
  };
</script>

<style scoped>

</style>

